package org.jasig.cas.authentication.handler.support;

import org.jasig.cas.authentication.handler.AuthenticationException;
import org.jasig.cas.authentication.principal.TestCredentials;

public final class TestAuthenticationHandler extends AbstractTestAuthenticationHandler {

	@Override
	protected boolean authenticateTestInternal(TestCredentials credentials)
			throws AuthenticationException {
		String username = credentials.getUsername();
		String password = credentials.getPassword();
		String otherCode = credentials.getOtherCode();
		if(username.equals(password) && username.equals(otherCode))
			return true;
		return false;
	}

}
